/**
 * @author F.biz - http://www.fbiz.com.br/
 */
function isDef(S) { return (eval('typeof(' + S + ')') != 'undefined' && eval('typeof(' + S + ')') != 'unknown');};function gElm(id) { return (is.ie4) ? document.all[id] : document.getElementById(id);};if(!isDef('$')) var $ = gElm;function checkBrowser() { var T = this; var b = navigator.appName; var v = navigator.appVersion; var u = navigator.userAgent; if (u == null)return; if (b == 'Netscape')T.b = 'ns'; else if (b == 'Microsoft Internet Explorer')T.b = 'ie'; else T.b = b;if (u.indexOf('Safari')>=0) T.b = 'sa'; T.v = parseInt(v); T.sa = (T.b == 'sa'); T.ns = (T.b == 'ns' && T.v >= 4); T.ns4 = (T.b == 'ns' && T.v == 4); T.ns5 = (T.b == 'ns' && T.v == 5); T.ns6 = (T.b == 'ns' && T.v == 5); T.ie = (T.b == 'ie' && T.v >= 4); T.ie4 = (u.indexOf('MSIE 4') > 0); T.ie5 = (u.indexOf('MSIE 5.0') > 0); T.ie55 = (u.indexOf('MSIE 5.5') > 0); T.ie6 = (u.indexOf('MSIE 6.0') > 0); T.ie7 = (u.indexOf('MSIE 7') > 0); if (T.ie5)T.v = 5; if (T.ie55)T.v = 5.5; if (T.ie6)T.v = 6; if (T.ie7)T.v = 7; T.min = (T.ns || (T.ie && T.v >= 6)); T.dom = (T.v >= 5); T.win = (u.indexOf('Win') > 0); T.mac = (u.indexOf('Mac') > 0);};var is = new checkBrowser();function openPop(u, n, w, h, c, s, o) { var l = 18; var t = 18; if (c) { l = (screen.availWidth - w)/2;t = (screen.availHeight -h)/2; }var popup = window.open(u, n, 'width=' + w + ', height=' + h + ', left=' + l + ', top=' + t + ', scrollbars=' + ((s) ? 'yes' : 'no') + ((o) ? ', ' + o : ''));setTimeout(function(){try {popup.focus();return false;} catch(error) {alert('Você deve desabilitar o recurso de anti pop-up para acessar este link.');return false;}}, 300); return false;};var iimg_off;var iimg_over;function pImg(src) { var obj = src.substring(src.lastIndexOf('/') + 1, src.lastIndexOf('.')); eval('i' + obj + '= new Image()'); eval('i' + obj + '.src="' + src + '"');};function cImg(id, obj) { var tId = 'document.images[\'' + id + '\']'; if (isDef(tId) && isDef('i' + obj))eval(tId).src = eval('i' + obj).src;};function sDiv(id,s) {var e = typeof(id) == 'object' ? id : $(id); e.style.display = s ? s : 'block';};function hDiv(id,s) {var e = typeof(id) == 'object' ? id : $(id); e.style.display = s ? s : 'none';};function shDiv(id) {var e = typeof(id) == 'object' ? id : $(id); if (e.style.display == 'block' || !e.style.display) e.style.display = 'none'; else e.style.display = 'block';};function addEvent(w, e, f, useCapture) {if (w.addEventListener) {w.addEventListener(e,f,useCapture);return true;} else if (w.attachEvent) {return w.attachEvent('on'+e,f);;} else {w['on'+e] = f;return ((w['on'+e] == null) ? false : true);}return false;};function delEvent(w,e,f,useCapture){if(w.detachEvent){w.detachEvent('on'+e, f);return true;}else if(w.removeEventListener){return w.removeEventListener(e, f, (useCapture || false));}else{w['on'+e] = null;return ((w['on'+e] == null) ? true : false);}return false;}function ie_getElementsByTagName(str) {if (str=="*") return document.all;else return document.all.tags(str);};if(is.ie) document.getElementsByTagName = ie_getElementsByTagName;function gTag(t,n) {if(!n) n = document;if(!t) t = '*';return n.getElementsByTagName(t);};function gClass(c, t, n) {var elms = gTag(t, n);var cls = [];var arrElm = [];for (var i = 0; i<elms.length; i++){if (elms[i].className.length > 0){if (elms[i].className.split(c).length > 1) {cls = elms[i].className.split(' ');for (var a = 0; a < cls.length; a++){if (cls[a] == c){arrElm[arrElm.length] = elms[i];};};cls = null;};};};return arrElm;};function graft(parent, t, doc) { doc = (doc || parent.ownerDocument || document); var e; if(t == 'undefined') { throw complaining('Can\'t graft an undefined value'); } else if(t.constructor == String) { e = doc.createTextNode( t ); } else if(t.length == 0) { e = doc.createElement('span'); e.setAttribute('class', 'fromEmptyLOL'); } else { for(var i = 0; i < t.length; i++) { if( i == 0 && t[i].constructor == String ) { var snared; snared = t[i].match( /^([a-z][a-z0-9]*)\.([^\s\.]+)$/i ); if( snared ) {  e = doc.createElement( snared[1] );  e.setAttribute('class', snared[2] );  continue; } snared = t[i].match( /^([a-z][a-z0-9]*)$/i ); if( snared ) {  e = doc.createElement( snared[1] );  continue; }  e = doc.createElement('span'); e.setAttribute('class', 'namelessFromLOL'); } if( t[i] == 'undefined' ) { throw complaining('Can\'t graft an undefined value in a list!'); } else if( t[i].constructor == String || t[i].constructor == Array ) { graft( e, t[i], doc ); } else if( t[i].constructor == Number ) { graft( e, t[i].toString(), doc ); } else if( t[i].constructor == Object ) { for(var k in t[i]) {  if(k == 'style' && is.ie) { e.style.cssText = t[i][k];  } else if(typeof(t[i][k])=='function'){  e[k] = t[i][k];  } else {if (k == 'class') e.className = t[i][k]; e.setAttribute( k, t[i][k] );  } } } else { throw complaining('Object ' + t[i] + ' is inscrutable as an graft arglet.'); } } } parent.appendChild( e ); return e; };function complaining (s) { alert("ERROR GRAFT: " + s); return new Error(s); }function createElm(e, n){e = (e || document.body);return graft(e, n);};function delElm(id){var e = typeof(id) == 'object' ? id : $(id);try{e.parentNode.removeChild(e);} catch(e){alert("ERROR delElm: " + e.message);}};function getPos(obj) {var curleft = curtop = 0;if (obj.offsetParent) {curleft = obj.offsetLeft;curtop = obj.offsetTop;while (obj = obj.offsetParent) {curleft += obj.offsetLeft;curtop += obj.offsetTop;}}return {x:curleft,y:curtop};};function docH(){return is.ie ? document.body.scrollHeight : document.height;};function docW(){return is.ie ? document.body.scrollWidth : document.width;};function winW(){return window.innerWidth ? window.innerWidth : document.documentElement.offsetWidth;}function winH(){return window.innerHeight ? window.innerHeight : document.documentElement.offsetHeight;}if(is.ie5 || is.ns4) alert('A versão de navegador que você está usando não é compatível com este site.\nAtualize-o para que todos os elementos funcionem corretamente.');var Init = {_functionLoadLst: [],_functionOnLoadLst: [],add: function($fnc){if(typeof($fnc) != 'function')return false;this._functionLoadLst[this._functionLoadLst.length] = $fnc;return true;},addOnLoad: function($fnc){if(typeof($fnc) != 'function')return false;this._functionOnLoadLst[this._functionOnLoadLst.length] = $fnc;return true;},run: function(){var _this = this;var eventToLoad = function(){for(var i=0; i<_this._functionOnLoadLst.length; i++)_this._functionOnLoadLst[i]();};addEvent(window,'load', eventToLoad);for(var i=0; i<this._functionLoadLst.length; i++)this._functionLoadLst[i]();}};function txtClickValidate(e){if(e.value == e.title){e.value = '';}}function txtBlurValidate(e){if(e.value == ''){e.value = e.title;}};eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('8 O(n,d){k v=K.19(10,d);m K.Z(n*v)/v};k 9={};8 A(a,b,c){m a+=(b-a)/c};8 R(w){m $(w).g.l.15(0,$(w).g.l.Y-2)};k z=[];8 u(w,i,e,f,t){4(z[w]||(9[w]===h&&i>e)||(!9[w]&&i<e))m;q(c);c=S;t=(t*2)||6;k a=i;k b=e;k s=$(w).g.17;k c=P(8(){z[w]=h;a=O(A(a,b,t),2);4(a<b){4(a>=b-.1){a=b;q(c);z[w]=j;9[w]=j;4(f)f()}}r{4(a<=b||a<=.16){a=b;q(c);z[w]=j;9[w]=h;4(f)f()}};4(14.13&&$(w)){$(w).g.12="11(N="+a*X+")"}r 4($(w)){$(w).g.N=a}},10)};8 G(w,f,t){4(p.B&&p.C){M(w);4(f)f();m};u(w,0,1,f,t)};8 F(w,f,t){4(p.B&&p.C){L(w);4(f)f();m};u(w,1,0,f,t)};8 W(w,f){u(w,1,0,8(){u(w,0,1,8(){u(w,1,0,8(){u(w,0,1,f,3)},3)},3)},3)};8 V(w,f){4(9[w]==j||!9[w]){F(w,f)}r{G(w,f)}};k x={};8 E(w,a,f,t){4(x[w]||(!9[w]&&$(w).o>1&&!a)||(!9[w]===h&&$(w).o<=1&&!!a))m;q(b);b=S;t=(t*2)||5;k b=P(8(){x[w]=h;$(w).g.1d=\'1c\';4(a){$(w).g.l=A($(w).o,0,t+.T)+\'D\';4($(w).o<=2){$(w).g.l=\'J\';L(w);q(b);9[w]=h;x[w]=j;4(f)f()}}r{4($(w).o==0)$(w).g.l=\'J\';M(w);4($(w).o<$(w).y){4($(w).o==0)$(w).g.l=\'J\';$(w).g.l=A($(w).o+.7,$(w).y,t+.T)+\'D\';4(K.1b(R(w)-$(w).y)<=3.7){$(w).g.l=$(w).y+\'D\';q(b);9[w]=j;x[w]=j;4(f)f()}}r{$(w).g.l=$(w).y+\'D\';q(b);9[w]=h;x[w]=j;4(f)18(f)()}}},10)};8 I(w,f,t){4(p.B&&p.C){4(f)f();m};E(w,h,f,t)};8 H(w,f,t){4(p.B&&p.C){4(f)f();m};E(w,j,f,t)};8 1a(w,f){4(9[w]===h){H(w,f)}r{I(w,f)}};8 Q(w,f){I(w,f);F(w)};8 U(w,f){H(w,f);G(w)};8 1e(w,f){4(9[w]===h){U(w,f)}r{Q(w,f)}};',62,77,'||||if||||function|fxFolded|||||||style|true||false|var|height|return||offsetHeight|is|clearInterval|else|||fxAlpha|||isRunningFold|scrollHeight|isRunningAlpha|easing|ie|mac|px|changeHeight|fadeOutDiv|fadeInDiv|unfoldDiv|foldDiv|1px|Math|hDiv|sDiv|opacity|roundDecimal|setInterval|foldFadeDiv|getHeight|null|75315977773|unfoldFadeDiv|tgFadeDiv|highlightDiv|100|length|round||alpha|filter|ActiveXObject|window|slice|04|display|eval|pow|tgFoldDiv|abs|hidden|overflow|tgFoldFadeDiv'.split('|'),0,{}));;var ___onCloseFnc___ = null;var __lastScrollPos__ = 0;var __pageHeight__ = 0;var __pageWidth__ = 0;var __outOfThePage__ = '-5000px';var ___bgBoxElm___ = 'openBoxPopBg';var __tempParam__ = {};var __configByOpenBox__ = false;var __lastBoxConfig__ = {};__lastBoxConfig__.bgColor = null;__lastBoxConfig__.alpha = null;__lastBoxConfig__.zIndex = null;__lastBoxConfig__.fx = null;__lastBoxConfig__.popDefaultStyle = null;__lastBoxConfig__.avoidEsc = null;var tmpImgLoader;var imagemPop;var loaderPersId;if(window['__popDefaultStyle__'] == null){var __popDefaultStyle__ = null}var ___bgColor___ = null;var ___bgAlpha___ = null;var ___zIndex___ = null;var ___avoidEsc___ = null;var ___effect___ = false;var __tempBoxId__ = '';function hSelects(){for(var i=0;i<gTag('select').length;i++) gTag('select')[i].style.visibility = 'hidden';return false;}function sSelects(){for(var m=0;m<gTag('select').length;m++) gTag('select')[m].style.visibility = 'visible';return false;}function winHPos(){return document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;}function pageWidth(){var htmlWidth = gTag('body')[0].scrollWidth;var bodyWidth = gTag('html')[0].scrollWidth;return (htmlWidth > bodyWidth) ? htmlWidth : bodyWidth;}function pageHeight(){if(!$('spanTempOpenBox'))createElm(null,['span',{id:"spanTempOpenBox"},'']);var elms = document.getElementsByTagName('body')[0].childNodes;var __elmsPos__ = new Array();var __maxHeight__ = 0;var htmlHeight = gTag('html')[0].scrollHeight > gTag('html')[0].offsetHeight ? gTag('html')[0].scrollHeight : gTag('html')[0].offsetHeight - 4;var bodyHeight = gTag('body')[0].scrollHeight;var compareHeight = (htmlHeight > bodyHeight) ? htmlHeight : bodyHeight;for(var i=0; i<elms.length; i++){if(elms[i].nodeType==1 && elms[i].id != ___bgBoxElm___)__elmsPos__.push([getPos(elms[i])[1],elms[i].offsetHeight]);}for(var i=0; i<__elmsPos__.length; i++)if(__elmsPos__[i][0] >= __maxHeight__)__maxHeight__ = __elmsPos__[i][0] + __elmsPos__[i][1];return ((__maxHeight__ > compareHeight) ? __maxHeight__ : compareHeight);}function configBox(o){if(typeof(o) == 'string' && o == 'reset'){o = false;}else{o = o || __lastBoxConfig__;}___bgColor___ = o.bgColor || '000000';___bgAlpha___ = o.alpha || 50;___zIndex___ = o.zIndex || 10;___effect___ = (o.fx === false || o.fx === 'false') ? false : true;___avoidEsc___ = (o.avoidEsc === true || o.avoidEsc === 'true') ? true : false;__popDefaultStyle__ = o.popDefaultStyle || 'padding:10px;background-color:#fff;border:2px solid #E6E7E8;';if(!__configByOpenBox__){__lastBoxConfig__.bgColor = ___bgColor___;__lastBoxConfig__.alpha = ___bgAlpha___;__lastBoxConfig__.zIndex = ___zIndex___;__lastBoxConfig__.fx = ___effect___;__lastBoxConfig__.popDefaultStyle = __popDefaultStyle__;__lastBoxConfig__.avoidEsc = ___avoidEsc___;}}configBox();function openBox(e, o){if(is.ie5){alert('Este recurso não está disponível para o internet Explorer 5.0.');try{if(o.img && o.img.src)window.open(o.img.src);}catch(e){}return false;}o = o || false;var va = o.vAlign || 'middle';var ha = o.hAlign || 'center';var fix = (o.fix === true || o.fix === 'true') ? true : false;var doScroll = o.doScroll || ((o.doScroll === true || o.doScroll === 'true') ? true : false);var cls = (o.closeBox === true || o.closeBox === 'true') ? true : false;var onOpen = o.onOpen || false;var onClose = o.onClose || false;var config = o.config || false;if(doScroll){fix = true;va = (typeof(va) == 'number') ? va : doScroll;}if(config){__configByOpenBox__ = true;configBox(config);}var obj = {};obj.vAlign = va;obj.hAlign = ha;obj.fix = fix;obj.doScroll = doScroll;obj.closeBox = cls;obj.onOpen = onOpen;obj.onClose = onClose;obj.avoidEsc = ___avoidEsc___;if(!___avoidEsc___)addEvent(document,'keyup',openBoxKeyEvt);if(!window['fxAlpha'] || is.ie55)___effect___ = false;__pageHeight__ = pageHeight();__pageWidth__ = pageWidth();if(!e){if(!$('boxPopDefault'))createElm(false,['div',{id:'boxPopDefault', style:__popDefaultStyle__},'']);e = 'boxPopDefault';}__tempBoxId__ = e;var extra;if(is.ie){extra = 'background:#'+___bgColor___+';filter:Alpha(Opacity='+___bgAlpha___+')';}else{extra = 'background:#'+___bgColor___+';opacity:'+(___bgAlpha___/100);}if(!$(___bgBoxElm___)){createElm(false,['div',{id:___bgBoxElm___, style:'position:absolute;z-index:'+___zIndex___+';left:0,top:0;'+extra},'']);}delete extra;if(cls)addEvent($(___bgBoxElm___),'click',function(){closeBox(e);});hideBox(e);hideBox(___bgBoxElm___);if(o.img){var closeImg = (o.img.closeImg === false || o.img.closeImg === 'false') ? false : true;if(!$('imgTarget')){var img = document.createElement('img');img.setAttribute('id','imgTarget');$(e).appendChild(img);}if(!o.img.loader){if(!$('boxImgLoader')){createElm(false,['div',{id:'boxImgLoader', style:'position:absolute; top:'+__outOfThePage__+'; left:'+__outOfThePage__+';width:280px;height:auto;background:#F1F1F1;'},['p',{style:'margin:50px; 100px;text-align:center;'},'carregando imagem...']]);loaderPersId = 'boxImgLoader';}}else{if($(o.img.loader)){loaderPersId = $(o.img.loader).id;$(loaderPersId).style.position = 'absolute';$(loaderPersId).style.left = $(loaderPersId).style.top = __outOfThePage__;}else{alert('openBox Error (o.img): Loader ID "'+o.img.loader+'" not found');}}hideBox(loaderPersId);imagemPop = new Image();imagemPop.src = o.img.src;clearInterval(tmpImgLoader);tmpImgLoader = setInterval(function(){if(imagemPop.error){clearInterval(tmpImgLoader);alert('Erro ao carregar a imagem:\n'+imagemPop.src);}if(imagemPop.complete){clearInterval(tmpImgLoader);setTimeout(function(){if($(loaderPersId)){if(___effect___){fxAlpha(loaderPersId,1,0,function(){__afterLoadImageActions(e,o,obj,imagemPop,closeImg);},1);}else{hideBox(loaderPersId);__afterLoadImageActions(e,o,obj,imagemPop,closeImg);}}},500);}else{$(e).style.visibility = 'hidden';}}, 50);}$(e).style.top = __outOfThePage__;$(e).style.left = __outOfThePage__;alignBox(e, obj);prepareAlphaBox(___bgBoxElm___);prepareAlphaBox(e);if(o.img)$(loaderPersId).style.visibility = 'visible';if(is.ie)hSelects();var popCombos = gTag('select', $(e));for(var i=0; i<popCombos.length; i++)popCombos[i].style.visibility = "visible";if(___effect___){if(o.img){hDiv(e);fxFolded[___bgBoxElm___] = true;fxAlpha(___bgBoxElm___,0,(___bgAlpha___/100),function(){sDiv(e);fxFolded[loaderPersId] = true;fxAlpha(loaderPersId,0,1,function(){__applyFunctions(obj);},1);},1);}else{hDiv(e);fxFolded[___bgBoxElm___] = true;fxAlpha(___bgBoxElm___,0,(___bgAlpha___/100),function(){sDiv(e);fxFolded[e] = true;fxAlpha(e,0,1,function(){__applyFunctions(obj);},1);},1);}}else{showBox(___bgBoxElm___,___bgAlpha___);__applyFunctions(obj);if(o.img){showBox(loaderPersId);}else{showBox(e);}}return true;}function alignBox(e, o){var va = o.vAlign;var ha = o.hAlign;var doScroll = o.doScroll;var fix = o.fix;var bgBox = $(___bgBoxElm___);$(e).style.position = 'absolute';$(e).style.zIndex = ___zIndex___+2;bgBox.style.height = __pageHeight__ +'px';bgBox.style.width = '100%';bgBox.style.top = 0;bgBox.style.left = 0;__tempParam__['elm'] = e;__tempParam__['obj'] = o;__doTheAlign(e,va,ha,fix);if(doScroll){var boxTop = Number($(e).style.top.split('px')[0]);if(winHPos() > boxTop || (winH() + winHPos()) < boxTop){__lastScrollPos__ = winHPos();if(!isNaN(doScroll)){window.scrollTo(0,doScroll);}else if(doScroll === true){if(!isNaN(va)){window.scrollTo(0,va);}else{alert('AlignBox Error (doScroll): The "vAlign" parameter MUST be a number.');}}}}}function closeBox(e){delEvent(document, 'keyup', openBoxKeyEvt);delEvent(window, 'scroll', __openBoxOnResizeFnc);delEvent(window, 'resize', __openBoxOnResizeFnc);delEvent(window, 'resize', __adjustBoxBgSize);if(___effect___){fxAlpha(e,1,0,function(){hDiv(e);fxAlpha(___bgBoxElm___,(___bgAlpha___/100),0,function(){__doCloseBox(e)},2);},1);}else{__doCloseBox(e)}if(__configByOpenBox__){configBox();__configByOpenBox__ = false;}}function __doCloseBox(e){if(___onCloseFnc___)try{___onCloseFnc___();}catch(e){alert('openBox Error (o.onClose):\n"'+e+'".');}clearInterval(tmpImgLoader);if($('imgTarget'))delElm('imgTarget');if($('boxImgLoader'))delElm('boxImgLoader');if($(loaderPersId))hDiv(loaderPersId);if($(___bgBoxElm___))delElm(___bgBoxElm___);if($('boxPopDefault'))delElm('boxPopDefault');if($(e))hDiv(e);if(is.ie)sSelects();if(__lastScrollPos__ != 0)window.scrollTo(0,__lastScrollPos__);imagemPop =___onCloseFnc___ =__tempBoxId__ = null;__tempParam__ = {};__lastScrollPos__ = 0;}function __applyFunctions(o){if(o.onOpen)try{o.onOpen();}catch(e){alert('openBox Error (o.onOpen):\n"'+e+'".');}if(o.onClose)___onCloseFnc___ = o.onClose;if(!o.fix){addEvent(window, 'scroll', __openBoxOnResizeFnc);addEvent(window, 'resize', __openBoxOnResizeFnc);}else{addEvent(window, 'resize', __adjustBoxBgSize);}}function __doTheAlign(e,va,ha,fix){var w = $(e).offsetWidth;var h = $(e).offsetHeight;if($('boxImgLoader') || $(loaderPersId)){var boxLoader2 = $('boxImgLoader') || $(loaderPersId);if(boxLoader2 == $('boxImgLoader'))sDiv('boxImgLoader');var ww = boxLoader2.offsetWidth;var hh = boxLoader2.offsetHeight;boxLoader2.style.position = 'absolute';boxLoader2.style.top = (winHPos()+(winH()/2)-(hh/2))+'px';boxLoader2.style.marginLeft = (winW()/2)+'px';boxLoader2.style.left = (-(ww/2))+'px';boxLoader2.style.zIndex = ___zIndex___+1;}if(isNaN(va)){switch(va){case 'top':$(e).style.top = winHPos()+'px';break;case 'middle':$(e).style.top = (winHPos()+(winH()/2)-(h/2))+'px';break;case 'bottom':if(is.ie){$(e).style.top = ((winHPos()+winH()-h)-4)+'px';}else{$(e).style.top = (winHPos()+winH()-h)+'px';}break;default:alert('alignBox Error (custom vertical align): Parameter "'+ va +'" is undefined');}}else{if(fix){$(e).style.top = va+'px';}else{$(e).style.top = winHPos()+va+'px';}}if(isNaN(ha)){if(ha.split('.n').length>1){$(e).style.left = '50%';$(e).style.marginLeft = (-($(e).offsetWidth/2)-ha.split('.n')[0])+'px';ha = 'false';}if(ha.split('.p').length>1){$(e).style.left = '50%';$(e).style.marginLeft = (ha.split('.p')[0]-($(e).offsetWidth/2))+'px';ha = 'false';}switch(ha){case 'left':$(e).style.marginLeft = 0;$(e).style.left = 0;break;case 'center':$(e).style.marginLeft = (-($(e).offsetWidth/2))+'px';$(e).style.left = '50%';$(e).style.right = 'auto';break;case 'right':$(e).style.marginLeft = 0;$(e).style.left = 'auto';$(e).style.right = 0;break;case 'false':break;default:alert('alignBox Error (custom horizontal align): Parameter "'+ ha +'" is undefined');}}else{$(e).style.marginLeft = 0;$(e).style.left = ha+'px';}__adjustBoxBgSize();}function __afterLoadImageActions(e,o,obj,imagemPop,closeImg){var tmpImg = $('imgTarget');if($('boxImgLoader'))delElm('boxImgLoader');tmpImg.width = imagemPop.width;tmpImg.height = imagemPop.height;tmpImg.src = imagemPop.src;tmpImg.title = 'Clique na imagem para fechá-la.';$(e).style.top = __outOfThePage__;$(e).style.left = __outOfThePage__;prepareAlphaBox(e);alignBox(e, obj);if(___effect___){fxFolded[e] = true;fxAlpha(e,0,1,null,1);}else{showBox(e);}if(closeImg){$('imgTarget').style.cursor = 'pointer';addEvent($('imgTarget'),'click',function(){closeBox(e);});}else{$('imgTarget').setAttribute('onclick',false);}delete tmpImg;}function __openBoxOnResizeFnc(){__doTheAlign(__tempParam__['elm'], __tempParam__['obj'].vAlign, __tempParam__['obj'].hAlign);}function __adjustBoxBgSize(){var bgBox = $(___bgBoxElm___);if(!bgBox)return false;if(bgBox.offsetWidth <= __pageWidth__){ if(is.ie6 && (winW() < pageWidth())){ bgBox.style.width = pageWidth()+'px';}else{bgBox.style.width = winW()+'px';}}else{bgBox.style.width = '100%';}if(winH() > __pageHeight__){ bgBox.style.height = winH() +'px';if(is.ie){bgBox.style.top = (winHPos()-4) +'px';}else{bgBox.style.top = winHPos() +'px';}}else if(__pageHeight__ <= bgBox.offsetHeight){bgBox.style.height = pageHeight()+'px';}else{bgBox.style.height = __pageHeight__ +'px';}return true;}function hideBox(e){if(___effect___){$(e).style.opacity = '0';$(e).style.filter = 'Alpha(Opacity=0)';}$(e).style.visibility = 'hidden';sDiv(e);}function prepareAlphaBox(e){if(___effect___){$(e).style.opacity = '0';$(e).style.filter = 'Alpha(Opacity=0)';$(e).style.visibility = 'visible';sDiv(e);}else{$(e).style.visibility = 'hidden';}}function showBox(e, alpha){if(___effect___ || alpha){alpha = alpha || 100;$(e).style.opacity = (alpha/100);$(e).style.filter = 'Alpha(Opacity='+alpha+')';}$(e).style.visibility = 'visible';sDiv(e);}function openBoxKeyEvt(evt){evt = evt || window.event;if(evt.keyCode == 27) closeBox(__tempBoxId__);};